package com.sk.z.khk.ibatis;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.sk.z.khk.ibatis.dto.Member;

public class MemberActionByIbatis {
	static SqlMapClient sqlMap = SqlMapFactory.getSqlMapInstance();

	public void insertMember() {
		Member member = new Member();
		member.setMember_id("11");
		member.setPw("11");
		member.setEmail("21");
		member.setTel1("21");
		member.setTel2("21");
		member.setTel3("21");
		member.setCheck1("1");
		member.setCheck2("1");
		member.setCheck3("1");
		member.setBirth("21");
		member.setGender("1");
		member.setCard_id("11");
		try {
			sqlMap.insert("insertMember", member);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static void main(String[] args) {
		MemberActionByIbatis ma = new MemberActionByIbatis();
		ma.insertMember();
	}
}
